package com.ldd.malphite.controller;

import com.ldd.malphite.annotation.AccessLimit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/log4j2")
    public String helloLog4j2(){

        log.debug("hello log4j2");
        return "hello log4j2";
    }

    @RequestMapping("/access")
    @AccessLimit
    public String helloAccess(){
        log.debug("hello access");
        return "hello access";
    }
}
